package com.dq.Week1.day01;

public class Demo05 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a+b);
        System.out.println(a-b);
        System.out.println(a*b);
        System.out.println(a/b);
        System.out.println(a%b);

        System.out.println("hello"+1+2);//hello12
        System.out.println(1+2+"hello");//3hello
        System.out.println(1+2+"hello"+3+4);//3hello34

        int c = 34;
        //获取十位
        System.out.println(c/10);
        //获取个位
        System.out.println(c%10);

        int d = 10;
        d++;//d = d + 1
        System.out.println(d);//d
        System.out.println(d++);
        System.out.println(++d);



        //赋值运算符
        //关系运算符
        //逻辑运算符
    }
}
